package tmt.usercenter.web.controller;

import com.tmt.datatable.editor.EditorModel;
import com.tmt.datatable.ext.controller.DataTableController;
import com.tmt.datatable.ext.controller.TablePage;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import tmt.usercenter.web.domain.LoginHistory;
import tmt.usercenter.web.service.LoginHistoryService;

import java.util.concurrent.ExecutionException;

@Getter
@Setter
@Controller
@RequestMapping("/login-history")
@TablePage("/login-history/index")
public class UserLoginController extends DataTableController<LoginHistory, Long> {

    @Autowired
    private LoginHistoryService loginHistoryService;

    @Override
    public EditorModel<LoginHistory> doTableAction(EditorModel<LoginHistory> editor)
            throws ExecutionException, InterruptedException {
        return super.doTableAction(editor);
    }
}